<footer class="pyg_footer">
    <a href="index.html" @@if(context.index==0){class="active"}>
        <span class="fa fa-home"></span>
        <div class="pagename">首页</div>
    </a>
    <a href="category.html" @@if(context.index==1){class="active"}>
        <span class="fa fa-list-ul"></span>
        <div class="pagename">分类</div>
    </a>
    <a href="javascript:;" @@if(context.index==2){class="active"}>
        <span class="fa fa-cart-plus"></span>
        <div class="pagename">购物车</div>
    </a>
    <a href="javascript:;" @@if(context.index==3){class="active"}>
        <span class="fa fa-user"></span>
        <div class="pagename">我的</div>
    </a>
</footer>